home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libg++ / src / Makefile.in < prev    next >
Makefile  |  1994-09-27  |  3KB  |  75 lines

  1. # Makefile for libg++.a
  2.  
  3. # Copyright (C) 1988, 1992, 1993 Free Software Foundation
  4. #   originally written by Doug Lea (dl@rocky.oswego.edu)
  5.  
  6. # This file is part of libg++, the GNU C++ library.
  7.  
  8. # GNU CC is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY.  No author or distributor
  10. # accepts responsibility to anyone for the consequences of using it
  11. # or for whether it serves any particular purpose or works at all,
  12. # unless he says so in writing.  Refer to the GNU CC General Public
  13. # License for full details.
  14.  
  15. # Everyone is granted permission to copy, modify and redistribute
  16. # GNU CC, but only under the conditions described in the
  17. # GNU CC General Public License.   A copy of this license is
  18. # supposed to have been given to you along with GNU CC so you
  19. # can know your rights and responsibilities.  It should be in a
  20. # file named COPYING.  Among other things, the copyright notice
  21. # and this notice must be preserved on all copies.
  22.  
  23. srcdir = .
  24.  
  25. # declarations from here on should not normally need to be changed 
  26. # in order to compile libg++.a
  27. #
  28.  
  29. # library sources 
  30.  
  31. EH_FILES = except.o
  32.  
  33. STREAM_OBJS = File.o  ostream.o istream.o streambuf.o filebuf.o Filebuf.o \
  34.  PlotFile.o  SFile.o
  35.  
  36. REGEX_OBJ=../../librx/rx.o
  37. BIT_OBJS = bitand.o bitany.o bitblt.o bitclear.o bitcopy.o bitcount.o\
  38.  bitinvert.o bitlcomp.o bitset1.o bitxor.o
  39. OBJS =  AllocRing.o Obstack.o builtin.o \
  40.  $(REGEX_OBJ) Regex.o String.o Intdouble.o Integer.o Rational.o \
  41.  Complex.o  Random.o BitSet.o BitString.o LogNorm.o SmplHist.o SmplStat.o \
  42.  Normal.o NegExp.o Weibull.o Erlang.o DiscUnif.o \
  43.  Uniform.o Poisson.o HypGeom.o Geom.o Binomial.o \
  44.  RNG.o ACG.o MLCG.o  RndInt.o  \
  45.  Fix.o Fix16.o Fix24.o CursesW.o GetOpt.o $(EH_FILES) \
  46.  new.o chr.o error.o gcd.o hash.o \
  47.  lg.o fmtq.o ioob.o pow.o sqrt.o str.o timer.o \
  48.  math.o compare.o $(BIT_OBJS) \
  49.  SLList.o DLList.o
  50.  
  51. DEPEND_SOURCES = $(srcdir)/*.cc
  52.  
  53. #### host, target, and site dependent Makefile fragments come in here.
  54. ##
  55.  
  56. .PHONY: add-to-targetlib
  57. # Invoked from other directories, overriding $(TARGETLIB).
  58. add-to-targetlib:
  59.     $(AR) $(AR_FLAGS) $(TARGETLIB) $(OBJS)
  60.  
  61. # This is invoked by the top-level libg++ Makefile, to:
  62. # a) make sure $(OBJS) are up-to-date, and
  63. # b) make a list of those files that should be added to libg++.a.
  64. libgxx.list: $(OBJS)
  65.     @echo "$(OBJS)" >libgxx.list
  66.  
  67. install:
  68.     for FILE in `(cd ${srcdir}; echo *.h gen/*.ccP gen/*.hP)`; do \
  69.         rm -f $(gxx_includedir)/$$FILE ; \
  70.         $(INSTALL_DATA) ${srcdir}/$$FILE $(gxx_includedir)/$$FILE \
  71.           || exit 1; \
  72.         chmod a-x,a+r $(gxx_includedir)/$$FILE ; \
  73.     done
  74.